<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ShowVouchersPopup.aspx.vb" Inherits="ShowVouchersPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Vouchers - Medini Accounts</title>
</head>
<body>
    <form id="form1" runat="server">
    <script language="javascript" type="text/javascript">
        function x(val){
            self.opener.document.forms[0].ctl00_ContentPlaceHolder1_txtVoucher.value = val;
            //window.opener.document.getElementsByName ("ctl00_ContentPlaceHolder1_txtVoucher")[0].value = val;
            window.close();
        }
    </script>
    <div>
    
    
        <asp:DataGrid ID="drgList" runat="server" AutoGenerateColumns="false" ItemStyle-Font-Names="Arial" ItemStyle-Font-Size="10pt" 
            HeaderStyle-Font-Names="Arial" HeaderStyle-Font-Size="10pt" HeaderStyle-Font-Bold="true">
            <Columns>
                <asp:TemplateColumn HeaderText="No">
                    <ItemTemplate>
                        <a onclick="x('<%#Eval("VoucherNumber")%>');" href="#" ><%#Eval("VoucherNumber")%></a>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="VoucherDate" HeaderText="Date" ItemStyle-Width="70px"></asp:BoundColumn>
                <asp:BoundColumn DataField="Description" HeaderText="Description" ItemStyle-Width="450px"></asp:BoundColumn>
                <asp:BoundColumn DataField="TransactionType" HeaderText="Head of Accounts" ItemStyle-Width="150px"></asp:BoundColumn>
                <asp:BoundColumn DataField="PersonName" HeaderText="Name" ItemStyle-Width="100px"></asp:BoundColumn>
            </Columns>
        </asp:DataGrid>
    
    </div>
    </form>
</body>
</html>
